package cn.iocoder.yudao.framework.websocket.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import java.util.List;
@ConfigurationProperties("yudao.websocket")
@Data
@Validated
public class WebSocketProperties {
    private boolean debug;
    private String endPoint;
    private String appEndPoint;
    private boolean relayEnable;
    private String userEndPoint;
    private String relayHost;
    private String clientLogin;
    private String clientPassword;
    /**
     * 最大连接数，超过这个连接数量的ws连接将不会被允许
     */
    private int maxConnection;
    private int relayPort;

    private List<String> brokers;
}
